<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>Highcharts Example</title>

		<style type="text/css">

		</style>
	</head>
	<body>
<script src="../../code/highcharts.js"></script>
<script src="../../code/modules/funnel.js"></script>
<script src="../../code/modules/exporting.js"></script>
<p>

</p>
<div id="container" style="min-width: 410px; max-width: 600px; height: 400px; margin: 0 auto">

</div>
		<script type="text/javascript">
		var loudou1 = ${fill};
		
		var num1 = loudou1.count1;
		var num2 = loudou1.count2;
		var num3 = loudou1.count3;
		var num4 = loudou1.count4;
		var num5 = loudou1.count5;
	
Highcharts.chart('container', {
    chart: {
        type: 'funnel'
    },
    title: {
        text: '各阶段客户数量'
    },
    plotOptions: {
        series: {
            dataLabels: {
                enabled: true,
                format: '<b>{point.name}</b> ({point.y:,.0f})',
                color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black',
                softConnector: true
            },
            center: ['40%', '50%'],
            neckWidth: '30%',
            neckHeight: '25%',
            width: '80%'
        }
    },
    legend: {
        enabled: false
    },
    series: [{
        name: '各阶段客户数量',
        data: [
            ['立项评估', num1],
            ['需求分析', num2],
            ['方案制定', num3],
            ['投标/竞争', num4],
            ['商务谈判', num5]
        ]
    }]
});
		</script>
	</body>
</html>
